<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>匿名函数</title>
</head>
<body>
        <script>
        /*    var foo = function () {
                alert('匿名函数')
            };
            foo()                         //匿名函数的调用

        */
                function  foo2() {
                    alert('具名函数')
                }
                foo2()
        </script>
</body>
</html>